package net.xiduth.algorithms;

/**
 * @author Bart
 * 
 * @since 19-6-2013
 */
public class Key {

	/**
	 * The ISAAC in and out key
	 */
	private ISAACCipher inKey, outKey;

	/**
	 * generated a new key
	 * 
	 * @param seed
	 */
	public Key(int[] seed) {
		inKey = new ISAACCipher(seed);
		for (int i = 0; i < seed.length; i++)
			seed[i] += 50;
		outKey = new ISAACCipher(seed);
	}

	/**
	 * Returns the in key
	 * 
	 * @return - inKey
	 */
	public ISAACCipher inKey() {
		return inKey;
	}

	/**
	 * Returns the out key
	 * 
	 * @return - outKey
	 */
	public ISAACCipher outKey() {
		return outKey;
	}
}
